package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

import com.ruicar.afs.cloud.common.core.enums.AfsBaseEnum;
import com.ruicar.afs.cloud.common.core.enums.annotations.AfsEnum;

/**
 * <p>Description: </p>
 *
 * @author ZC.GUO
 * @version 1.0
 * @date create on 2020-05-21 20:36
 */
public enum CustRoleEnum implements AfsBaseEnum {
    @AfsEnum(key = "01", desc = "主借人", mapping = {"afs-case=01", "afs-contract=MAIN_PERSON"})
    MIANCUST("01", "主借人"),
    @AfsEnum(key = "02", desc = "共借人", mapping = {"afs-case=02", "afs-contract=JOINT_PERSON"})
    COMMONCSUT("02", "共借人"),
    @AfsEnum(key = "03", desc = "担保人", mapping = {"afs-case=03", "afs-contract=GUARANTEE_PERSON"})
    GUARANTOR("03", "担保人"),
    @AfsEnum(key = "04", desc = "联系人", mapping = {"afs-case=04", "afs-contract=RELATION_PERSON"})
    CONTACT("04", "联系人");

    CustRoleEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String code;
    private String desc;

    public String getCode() {
        return code;
    }
}
